package com.arpa.oms.domain.entity;

import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * OMS入库单明细
 * </p>
 *
 * @author LEO
 * @since 2020-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oms_inbound_item")
@ApiModel(value = "OmsInboundItem对象", description = "OMS入库单明细")
public class OmsInboundItem extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "入库单号")
    @TableField("inbound_code")
    private String inboundCode;


    @ApiModelProperty(value = "商品标识")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    @TableField("goods_bar_code")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "基本单位")
    @TableField("basic_unit")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    @TableField("basic_unit_name")
    private String basicUnitName;

    @ApiModelProperty(value = "当前商品单位转基本单位件装量")
    @TableField("unit_convert_quantity")
    private BigDecimal unitConvertQuantity;

    @ApiModelProperty(value = "入库数量（基本单位）")
    @TableField("storage_quantity")
    private BigDecimal storageQuantity;


    @ApiModelProperty(value = "'税率'")
    @TableField("tax_rate")
    private BigDecimal taxRate;


    @ApiModelProperty(value = "'单价'")
    @TableField("unit_price")
    private BigDecimal unitPrice;


    @ApiModelProperty(value = "'含税单价'")
    @TableField("tax_unit_price")
    private BigDecimal taxUnitPrice;


    @ApiModelProperty(value = "金额")
    @TableField("amount_money")
    private BigDecimal amountMoney;

    @ApiModelProperty(value = "税额")
    @TableField("tax_money")
    private BigDecimal taxMoney;

    @ApiModelProperty(value = "价税合计")
    @TableField("total_money")
    private BigDecimal totalMoney;


    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;


}
